package com.jian.common;

import lombok.Getter;

/**
 * 错误码
 *
 * @author 太难了
 */
@Getter
public enum ErrorCode {

    PARAM_ERROR(40000,"请求参数错误"),
    PARAM_NULL_ERROR(40001,"请求参数为空"),
    NOT_LOGIN(40400,"未登录"),
    LOGIN_FAILED(40401,"登录失败"),
    NO_AUTH(40102,"无权限"),
    SAVE_ERROR(40200,"存储失败"),
    SELETE_ERROR(40300,"查询失败"),
    UPDATE_ERROR(40400,"更新失败"),
    SYSTEM_ERROR(40500,"系统错误"),
    ;

    private int code;
    /**
     * 状态码信息
     */
    private String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
